.class Lcom/example/m6wmr/BaseMapDemo$6;
.super Ljava/lang/Object;
.source "BaseMapDemo.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/BaseMapDemo;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/BaseMapDemo;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/BaseMapDemo;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/BaseMapDemo$6;->this$0:Lcom/example/m6wmr/BaseMapDemo;

    .line 153
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 5
    .param p1, "v"    # Landroid/view/View;
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "NewApi"
        }
    .end annotation

    .prologue
    const/4 v4, 0x0

    .line 157
    invoke-static {}, Lmyapp/Util;->isFastDoubleClick()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 188
    :goto_0
    return-void

    .line 160
    :cond_0
    iget-object v1, p0, Lcom/example/m6wmr/BaseMapDemo$6;->this$0:Lcom/example/m6wmr/BaseMapDemo;

    iget-object v1, v1, Lcom/example/m6wmr/BaseMapDemo;->m:Lmyapp/MyApp;

    invoke-virtual {v1}, Lmyapp/MyApp;->getCity()Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_1

    iget-object v1, p0, Lcom/example/m6wmr/BaseMapDemo$6;->this$0:Lcom/example/m6wmr/BaseMapDemo;

    iget-object v1, v1, Lcom/example/m6wmr/BaseMapDemo;->m:Lmyapp/MyApp;

    invoke-virtual {v1}, Lmyapp/MyApp;->getCity()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->isEmpty()Z

    move-result v1

    if-nez v1, :cond_1

    iget-object v1, p0, Lcom/example/m6wmr/BaseMapDemo$6;->this$0:Lcom/example/m6wmr/BaseMapDemo;

    iget-object v1, v1, Lcom/example/m6wmr/BaseMapDemo;->m:Lmyapp/MyApp;

    invoke-virtual {v1}, Lmyapp/MyApp;->getCity()Ljava/lang/String;

    move-result-object v1

    const-string v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    .line 161
    :cond_1
    iget-object v1, p0, Lcom/example/m6wmr/BaseMapDemo$6;->this$0:Lcom/example/m6wmr/BaseMapDemo;

    # getter for: Lcom/example/m6wmr/BaseMapDemo;->mcontext:Landroid/content/Context;
    invoke-static {v1}, Lcom/example/m6wmr/BaseMapDemo;->access$2(Lcom/example/m6wmr/BaseMapDemo;)Landroid/content/Context;

    move-result-object v1

    const-string v2, "APP\u672a\u5b9a\u4f4d\u4e0d\u80fd\u641c\u7d22"

    invoke-static {v1, v2, v4}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/Toast;->show()V

    goto :goto_0

    .line 165
    :cond_2
    iget-object v1, p0, Lcom/example/m6wmr/BaseMapDemo$6;->this$0:Lcom/example/m6wmr/BaseMapDemo;

    # getter for: Lcom/example/m6wmr/BaseMapDemo;->keyinput:Landroid/widget/EditText;
    invoke-static {v1}, Lcom/example/m6wmr/BaseMapDemo;->access$3(Lcom/example/m6wmr/BaseMapDemo;)Landroid/widget/EditText;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v1

    invoke-interface {v1}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v1

    .line 166
    const-string v2, "%"

    const-string v3, ""

    invoke-virtual {v1, v2, v3}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    const-string v2, " "

    const-string v3, ""

    invoke-virtual {v1, v2, v3}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v0

    .line 167
    .local v0, "searchvalue":Ljava/lang/String;
    const-string v1, ""

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_3

    .line 168
    iget-object v1, p0, Lcom/example/m6wmr/BaseMapDemo$6;->this$0:Lcom/example/m6wmr/BaseMapDemo;

    # getter for: Lcom/example/m6wmr/BaseMapDemo;->mcontext:Landroid/content/Context;
    invoke-static {v1}, Lcom/example/m6wmr/BaseMapDemo;->access$2(Lcom/example/m6wmr/BaseMapDemo;)Landroid/content/Context;

    move-result-object v1

    const-string v2, "\u641c\u7d22\u5185\u5bb9\u4e3a\u7a7a"

    invoke-static {v1, v2, v4}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/Toast;->show()V

    goto :goto_0

    .line 182
    :cond_3
    iget-object v1, p0, Lcom/example/m6wmr/BaseMapDemo$6;->this$0:Lcom/example/m6wmr/BaseMapDemo;

    # getter for: Lcom/example/m6wmr/BaseMapDemo;->mPoiSearch:Lcom/baidu/mapapi/search/poi/PoiSearch;
    invoke-static {v1}, Lcom/example/m6wmr/BaseMapDemo;->access$4(Lcom/example/m6wmr/BaseMapDemo;)Lcom/baidu/mapapi/search/poi/PoiSearch;

    move-result-object v1

    new-instance v2, Lcom/baidu/mapapi/search/poi/PoiCitySearchOption;

    invoke-direct {v2}, Lcom/baidu/mapapi/search/poi/PoiCitySearchOption;-><init>()V

    .line 183
    iget-object v3, p0, Lcom/example/m6wmr/BaseMapDemo$6;->this$0:Lcom/example/m6wmr/BaseMapDemo;

    iget-object v3, v3, Lcom/example/m6wmr/BaseMapDemo;->m:Lmyapp/MyApp;

    invoke-virtual {v3}, Lmyapp/MyApp;->getCity()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/baidu/mapapi/search/poi/PoiCitySearchOption;->city(Ljava/lang/String;)Lcom/baidu/mapapi/search/poi/PoiCitySearchOption;

    move-result-object v2

    .line 184
    invoke-virtual {v2, v0}, Lcom/baidu/mapapi/search/poi/PoiCitySearchOption;->keyword(Ljava/lang/String;)Lcom/baidu/mapapi/search/poi/PoiCitySearchOption;

    move-result-object v2

    .line 185
    const/16 v3, 0xf

    invoke-virtual {v2, v3}, Lcom/baidu/mapapi/search/poi/PoiCitySearchOption;->pageNum(I)Lcom/baidu/mapapi/search/poi/PoiCitySearchOption;

    move-result-object v2

    .line 182
    invoke-virtual {v1, v2}, Lcom/baidu/mapapi/search/poi/PoiSearch;->searchInCity(Lcom/baidu/mapapi/search/poi/PoiCitySearchOption;)Z

    goto/16 :goto_0
.end method
